﻿using Bigway.Common.Models;

namespace Bigway.Common.Utils;

public static class MiscUtils
{
    public static Coordinate ParseAsCoordinate(this string latitudeAndLongitude)
    {
        var parts = latitudeAndLongitude.Split(',', StringSplitOptions.TrimEntries);
        return new Coordinate(double.Parse(parts[1]), double.Parse(parts[0]));
    }
}